<?php defined('SYSPATH') or die('No direct script access.');

class Model_Photo_Set extends ORM {

  protected $_table_name = 'photo_sets';

    protected $_has_many = array(
      'photo_source' => array('through' => 'photo_sets_photo_sources'),
    );

  /**
   * Validate upload
   */
  public function validate_form($array) {

    $validation = Validate::factory($array)
                    ->filter(TRUE, 'trim')
                    ->rule('title', 'not_empty');

    return $validation;
  }

}